package cool.taomu.toolkit.test

import java.io.File
import java.io.FileInputStream
import org.eclipse.xtend.lib.annotations.Accessors
import org.eclipse.xtend.lib.annotations.ToString
import org.junit.jupiter.api.Test
import org.yaml.snakeyaml.Yaml

class YmlTest {
	@Accessors
	@ToString
	static class Taomu{
		String title;
	}
	@Accessors
	@ToString
	static class TaomuConfig{
		Taomu taomu;
	}
	
	@Test
	def void a(){
		var yml = new Yaml()
		var t = yml.loadAs(new FileInputStream(new File("./config/application-pro.yml")),TaomuConfig);
		println(t)
	}
}